package org.budo.cmbc.direct.sdk.entity.changeaccountinfo;

import java.util.List;

import org.budo.cmbc.direct.sdk.entity.AbstractCmbcDirectResponse;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 审批进度列表查询
 *
 * @author caotao
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class MEApprovalProcessListQueryResponse extends AbstractCmbcDirectResponse {
    private static final long serialVersionUID = -5536694114790242053L;

    private List<MEApprovalProcess> list;

    public MEApprovalProcessListQueryResponse(String channelJnlNo, String responseJson) {
        super(channelJnlNo, responseJson);

        JSONObject json = JSON.parseObject(responseJson);
        this.list = json.getJSONArray("List").toJavaList(MEApprovalProcess.class);
    }
}
